<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><s:text name="system.page.title"/></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="js/jquery-1.8.0.js" charset="utf-8"></script>
<script type="text/javascript" src="js/ready.js" charset="utf-8"></script>
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js" charset="utf-8"></script>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
var project_id = <s:property value="project_id"/>
$(function() {
	$("#naireTemplate").load("createQuestionnaire.do",{"project_id":project_id});
});
function addQuestion(num) {
	$("#code").val(num);
	formId.action = "addQuestionnairePage.do";
	formId.submit();
}
function editorQuestion(id) {
	$("#project_answer_id").val(id);
	formId.action = "addQuestionnairePage.do";
	formId.submit();
}
function removeQuestion(id) {
	$("#project_answer_id").val(id);
	formId.action = "removeQuestionnaire.do";
	formId.submit();
}
function saveTemplate() {
	formId.action = "editorTemplate.do";
	formId.submit();
}
</script>
</head>
<body>
<div class="tools">
	<div class="tool">
	<ul>
		<li>
			<div onclick="saveTemplate();"><img src="image/button/filesave.png" width="20" height="20"/><span><s:text name='system.button.save'/></span></div>
		</li>
	</ul>
	</div>
</div>
<s:form action="" id="formId" name="formId">
<s:hidden name="project_id"/>
<input type="hidden" name="bean.project_answer_id" id="project_answer_id""/>
<input type="hidden" name="code" id="code"/>
<div class="formatClass">
	<div class="formatData">
		<div id="naireTemplate" class="formatTable" style="height:500px;">
			
		</div>
	</div>
</div>
</s:form>
</body>
</html>